package com.company;

import java.util.Scanner;

public class Main38 {

    public static void main(String[] args) {
        Scanner sr=new Scanner(System.in);
        System.out.println("输入一个整数(2-100)");
        int a=sr.nextInt();

        if (a<10){
            int b=a*a;
            int c=b%10;
            System.out.println(b);
            if (a==c){
                System.out.println(a+"是同构数");
            }
        } else if (a<100&&a>=10){
            int b=a*a;
            int c=b%100;
            System.out.println(b);
            if (a==c){
                System.out.println(a+"是同构数");
            }
        } else System.out.println(a+"不是同构数");
    }
}